package com.rr.mymoney.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "tags")
@SequenceGenerator(name = "tags_seq", sequenceName = "tags_seq")
public class Tag implements Serializable {

    private static final long serialVersionUID = 1042574437787481461L;

    private Long id;
    private String name;

    @Id
    @GeneratedValue(generator = "tags_seq", strategy = GenerationType.AUTO)
    public Long getId() {
	return id;
    }

    public void setId(Long id) {
	this.id = id;
    }

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

}
